package com.lcm.learn.lcmcode.bitmap;

import java.io.*;
import java.util.Random;

/**
 * @description:
 * @author: lcm
 * @create: 2019-09-26 16:55
 **/

public class DataCreate {

    public static void main(String[] args){
        Long start=System.currentTimeMillis();
        long i=1000000000L;
        BufferedWriter writer = null;
        try {
            writer=new BufferedWriter(new FileWriter("E:\\data\\data.txt"));
            Random random=new Random();
        for(int j=0;j<i;j++){
            writer.write(random.nextInt(Integer.MAX_VALUE)+"");
            writer.newLine();
        }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            if(writer!=null){
                try {
                    writer.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
        System.out.println((System.currentTimeMillis()-start)/1000);
    }

}
